<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .menus {
            width: 200px;
            /*height: 50px;*/
            border: 1px solid red;
        }

        .menus .header {
            background-color: gold;
            padding: 20px 10px;
        }
    </style>
</head>
<body>
<div class="menus">
    <div class="header" onclick="myFunc()">大标题</div>
    <div class="item" onclick="myFuncs()">内容</div>
</div>
<script type="text/javascript">
    function myFunc() {
        alert("hellow word")
    }

    function myFuncs() {
        confirm("是否继续？")
    }

</script>


</body>
</html>